package cinema;

/**
 * @authors Matt Couzens & Amanda Kosinski
 * @version 29 April 2012
 */

public class PreLoad {
		
	public static void createBookingSystem(){
		BookingSystem sys = new BookingSystem("Matt and Amanda's Cinema of Dreams");
		System.out.println(sys);
		// add persons
		sys.addManager("manager", "manager123");
		sys.addCustomer(new Customer("customer1", "customer1"));
		sys.addCustomer(new Customer("customer2", "customer2"));
		sys.addCustomer(new Customer("customer3", "customer3"));
		// add screens
		sys.addScreen(1, 124, "Entrance on left.");
		sys.addScreen(2, 102, "Entrance on right.");
		sys.addScreen(3, 96, "Entrance at back.");
		// add movies, showings and bookings
		Movie mv;
		Showing sh;
		mv = new Movie(
				"Dirty Dancing",
				"Drama, Romance",
				"Emile Ardolino",
				"100",
				"Patrick Swayze, Jennifer Grey",
				"16 October 1987",
				"15",
				"English",
				"Spending the summer in a holiday camp with her family, Frances ('Baby') falls in love with the camp's dancing teacher.",
				"http://www.imdb.com/video/screenplay/vi4074439449/");
		sys.addMovie(mv);
		sh = new Showing(mv, sys.getScreen(1), 2012, 4, 22, 20, 30);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 20));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 4));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 8));
		sh = new Showing(mv, sys.getScreen(1), 2012, 4, 23, 15, 30);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 33));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 5));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 3));
		sh = new Showing(mv, sys.getScreen(1), 2012, 4, 24, 13, 30);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 23));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 7));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 1));
		mv = new Movie(
				"Good Will Hunting",
				"Drama",
				"Gus Van Sant",
				"126",
				"Robin Williams, Matt Damon, Ben Affleck",
				"6 March 1998",
				"15",
				"English",
				"Will Hunting, a janitor at MIT, has a gift for mathematics but needs help from a psychologist to find direction in his life.",
				"http://www.imdb.com/video/screenplay/vi1575984665/");
		sys.addMovie(mv);
		sh = new Showing(mv, sys.getScreen(1), 2012, 4, 22, 20, 30);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 17));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 5));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 4));
		sh = new Showing(mv, sys.getScreen(1), 2012, 4, 23, 21, 00);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 24));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 3));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 2));
		sh = new Showing(mv, sys.getScreen(1), 2012, 4, 24, 21, 15);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 9));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 1));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 6));
		mv = new Movie(
				"The Artist",
				"Comedy, Romance, Drama",
				"Michel Hazanavicius",
				"100",
				"Jean Dujardin, Berenice Bejo and John Goodman",
				"30 December 2011",
				"PG",
				"English",
				"Hollywood, 1927: As silent movie star George Valentin wonders if the arrival of talking pictures will cause him to fade into " +
						"oblivion, he sparks with Peppy Miller, a young dancer set for a big break.",
				"http://www.imdb.com/video/imdb/vi3105725977/");
		sh = new Showing(mv, sys.getScreen(2), 2012, 4, 22, 14, 15);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 15));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 7));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 1));
		sh = new Showing(mv, sys.getScreen(2), 2012, 4, 23, 15, 00);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 21));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 8));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 7));
		sh = new Showing(mv, sys.getScreen(2), 2012, 4, 24, 13, 45);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 17));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 4));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 3));
		sys.addMovie(mv);
		mv = new Movie(
				"Cinema Paradiso",
				"Drama",
				"Giuseppe Tornatore",
				"155",	
				"Philippe Noiret, Enzo Cannavale and Antonella Attili",
				"23 February 1990 (USA)",
				"PG",
				"Italian | English | Portuguese (Singing)",
				"A filmmaker recalls his childhood, when he fell in love with the movies at his village's theater and formed a " +
						"deep friendship with the theater's projectionist.",
				"http://www.imdb.com/video/screenplay/vi2817433113/");
		sys.addMovie(mv);
		sh = new Showing(mv, sys.getScreen(2), 2012, 4, 22, 20, 15);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 14));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 2));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 7));
		sh = new Showing(mv, sys.getScreen(2), 2012, 4, 23, 20, 45);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 31));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 16));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 12));
		sh = new Showing(mv, sys.getScreen(2), 2012, 4, 24, 21, 00);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 24));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 9));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 6));
		mv = new Movie(
				"Crash",
				"Drama",
				"Paul Haggis",
				"112",
				"Don Cheadle, Sandra Bullock and Thandie Newton",
				"12 August 2005",
				"15",
				"English",
				"Los Angeles citizens with vastly separate lives collide in interweaving stories of race, loss and redemption.",
				"http://www.imdb.com/video/screenplay/vi2898198809/");
		sys.addMovie(mv);
		sh = new Showing(mv, sys.getScreen(1), 2012, 1, 22, 14, 30);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 20));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 4));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 8));
		sh = new Showing(mv, sys.getScreen(1), 2012, 1, 23, 15, 30);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 33));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 5));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 3));
		sh = new Showing(mv, sys.getScreen(1), 2012, 1, 24, 13, 30);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getMgr(), 23));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer3"), 7));
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 1));
		mv = new Movie(
				"WALL-E",
				"Animation, Adventure, Family",
				"Andrew Stanton",
				"98",
				"Ben Burtt, Elissa Knight and Jeff Garlin",
				"18 July 2008",
				"U",
				"English",
				"In the distant future, a small waste collecting robot inadvertently embarks on a space journey that will ultimately " +
						"decide the fate of mankind.",
				"http://www.imdb.com/video/imdb/vi2192703769/");
		sys.addMovie(mv);
		sys.addMovie(mv);
		sh = new Showing(mv, sys.getScreen(1), 2012, 2, 20, 17, 17);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 4));
		sh = new Showing(mv, sys.getScreen(1), 2012, 2, 21, 17, 17);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 4));
		sh = new Showing(mv, sys.getScreen(1), 2012, 2, 22, 17, 17);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer1"), 4));
		sh = new Showing(mv, sys.getScreen(1), 2012, 2, 24, 17, 17);
		sys.addShowing(sh);
		sys.addBooking(new Booking(sh, sys.getCustomers().get("customer2"), 8));
		mv = new Movie(
				"City of God",
				"Crime, Drama",
				"Fernando Meirelles",
				"130",
				"Alexandre Rodrigues, Matheus Nachtergaele and Leandro Firmino",
				"3 January 2003",
				"18",
				"Portuguese",
				"Two boys growing up in a violent neighborhood of Rio de Janeiro take different paths: one becomes a " +
						"photographer, the other a drug dealer. ",
				"http://www.imdb.com/video/screenplay/vi3639516697/");
		sys.addMovie(mv);
		mv = new Movie(
				"Ghost Dog: The Way of the Samurai",
				"Action, Crime, Drama",
				"Jim Jarmusch",
				"116",
				"Forest Whitaker, Henry Silva and John Tormey",
				"28 April 2000",
				"15",
				"English",
				"An African American mafia hit man who models himself after the samurai of old finds himself targeted for death by " +
						"the mob.",
				"http://www.imdb.com/video/screenplay/vi3735617817/");
		sys.addMovie(mv);
		mv = new Movie(
				"The Flintstones",
				"Comedy, Crime, Family",
				"Brian Levant",
				"91",
				"John Goodman, Rick Moranis and Rosie O'Donnell",
				"22 July 1994",
				"U",
				"English",
				"In this live-action feature of the cartoon show, Fred Flintstone finally gets the job he's always wanted, but it may " +
						"just come at a price. ",
				"http://www.imdb.com/video/screenplay/vi1458700569/");
		sys.addMovie(mv);
		Utility.save(sys);
	}
}